/*
 * Copyright (c) 2025 GuoKaiHong (Shenzhen) Technology Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


export default interface IIdCardService {
  init(deviceId: number, callback: initCallback): void;

  sayHello(str: string, callback: sayHelloCallback): void;

  selfCheck(callback: selfCheckCallback): void;

  idc_card_search(callback: idc_card_searchCallback): void;

  idc_card_select(callback: idc_card_selectCallback): void;

  fetch_card_info(callback: fetch_card_infoCallback): void;

  gkh_identity_card_close(callback: gkh_identity_card_closeCallback): void;
}

export type initCallback = (errCode: number) => void;

export type sayHelloCallback = (errCode: number, returnValue: string) => void;

export type selfCheckCallback = (errCode: number) => void;

export type idc_card_searchCallback = (errCode: number, returnValue: number) => void;

export type idc_card_selectCallback = (errCode: number, returnValue: number) => void;

export type fetch_card_infoCallback = (errCode: number, returnValue: string) => void;

export type gkh_identity_card_closeCallback = (errCode: number, returnValue: number) => void;

